<?php

namespace app\common;


abstract class BaseService
{

  private static $instances = [];

  public static function getInstance() {
    if (!isset(self::$instances[static::class])) {
      self::$instances[static::class] = new static();
    }
    return self::$instances[static::class];
  }
}